<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="java.util.*" %>
<%@ page import="com.ionglobal.db.*" %>
<%@ page import="com.ionglobal.lib.*" %>
<%@ page import="com.ionglobal.misc.*" %>
<%@ page import="com.ionglobal.project.*" %>

<%@ include file="../init_include.jsp" %>
<%@ include file="../checkPrivileges.jsp" %>
<%
	int catid=Request.getInt("catid");

	int id = Request.getInt("id",0);
	DCNoticeApp newDCNoticeApp = new DCNoticeApp();
	DCNotice newDCNotice = new DCNotice();
	if(id != 0)
		newDCNotice = newDCNoticeApp.getDCNotice(dbi,id);
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<%=Language.getHTMLLanguageStr()%>">
<link rel="stylesheet" href="<%=Language.getCSSFile(session)%>" type="text/css">
<SCRIPT language=JavaScript1.2 src="../script/editor.js"></SCRIPT>
<title>eqs_DCNotice</title>
</head>
<body>
<%=Language.getNameByCode("sys.CurrentPos","Current Position")%>:<%=Language.getNameByCode("cms.dj.title","Add or Edit")%>eqs_DCNotice<br> 
<hr>   
 <table width="100%" border="0" cellspacing="1" cellpadding="2" class="input_title">
   <tr>
     <td>&nbsp;<%=Language.getNameByCode("cms.dj.title","Add or Edit")%>eqs_DCNotice</td>
   </tr>
 </table>
   <script language="javascript">
   <!--
   	function checkForm() {
   		var sForm=document.formIon;
   		sForm.Submit.disabled = true;
   	}
   	-->
   </script> 	
	 <form method="post" name="formIon" action="DCNotice_addmod.jsp" onSubmit="return checkForm();">
   <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#666666">
		    <tr class="bgcolor_title_tr">
      <td  class="input_title">iNoticeId</td>
      <td>    <input name="iNoticeId" type="text" value="<%=newDCNotice.getNoticeId()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">iDcnid</td>
      <td>    <input name="iDcnid" type="text" value="<%=newDCNotice.getDcnid()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sTitle</td>
      <td>    <input name="sTitle" type="text" value="<%=newDCNotice.getTitle()%>" size="20" maxlength="100">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">iCategory</td>
      <td>    <input name="iCategory" type="text" value="<%=newDCNotice.getCategory()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td class="input_title" colspan="2">sContent</td>
    </tr>    <tr class="bgcolor_title_tr">
      <td class="input_title" colspan="2">
          <iframe  src="../editor.html" width="100%" height="340" name=editor_sContent></iframe>
      <div name="sContent_hidden" style="display:none">
        <textarea name="sContent"><%=newDCNotice.getContent()%></textarea>
      </div>
      <script>
        var set_sContent = false;
        function setsContent(){
          if( ! set_sContent ){
            if (document.editor_sContent.loaded ){
              document.editor_sContent.setHTML(document.formIon.sContent.value);
              set_sContent=true;
            }
            else setTimeout("setsContent()",500);
          }
        }
        setsContent(); 
      </script>

      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sIndicates</td>
      <td>    <input name="sIndicates" type="text" value="<%=newDCNotice.getIndicates()%>" size="20" maxlength="200">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sLevel</td>
      <td>    <input name="sLevel" type="text" value="<%=newDCNotice.getLevel()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sCrUser</td>
      <td>    <input name="sCrUser" type="text" value="<%=newDCNotice.getCrUser()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">dCrDate</td>
      <td>    <input name="dCrDate" type="text" value="<%=newDCNotice.getCrDate()%>" size="20" maxlength="23">
      </td>
    </tr>

 </table>
 <input type="Submit" name="Submit" style="width=80" value="<%=Language.getNameByCode("sys.Submit","Submit")%>">
 <input type="Reset" name="Reset" style="width=80" value="<%=Language.getNameByCode("sys.Reset","Reset")%>">
 <input type="button" name="close" style="width=80" value="<%=Language.getNameByCode("sys.Close","Close")%> " onClick="self.close();">
 <input type="hidden" name="id" value="<%=id%>">
 <input type="hidden" name="catid" value="<%=catid%>">
</form>
</body>                
</html>
<%@ include file="../init_free.jsp" %>
